package com.shouyun;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * shouyun-admin
 *
 * @author Sunshouguo sunshouguo_java@163.com
 */
@SpringBootApplication(exclude = {
	//依赖数据库
//	org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
	//不依赖数据库
	DataSourceAutoConfiguration.class
})
public class AdminApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(AdminApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(AdminApplication.class);
	}
}